Integrand size = 25, antiderivative size = 149 \[ \int \frac {1}{(e \csc (c+d x))^{7/2} (a+a \sec (c+d x))} \, dx=-\frac {2 \cos (c+d x)}{21 a d e^3 \sqrt {e \csc (c+d x)}}+\frac {2 \cos ^3(c+d x)}{7 a d e^3 \sqrt {e \csc (c+d x)}}-\frac {4 \operatorname {EllipticF}\left (\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right ),2\right )}{21 a d e^3 \sqrt {e \csc (c+d x)} \sqrt {\sin (c+d x)}}+\frac {2 \sin ^2(c+d x)}{5 a d e^3 \sqrt {e \csc (c+d x)}} \]
[Out]
Time = 0.43 (sec) , antiderivative size = 149, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.320, Rules used = {3963, 3957, 2918, 2644, 30, 2648, 2649, 2720} \[ \int \frac {1}{(e \csc (c+d x))^{7/2} (a+a \sec (c+d x))} \, dx=\frac {2 \cos ^3(c+d x)}{7 a d e^3 \sqrt {e \csc (c+d x)}}-\frac {2 \cos (c+d x)}{21 a d e^3 \sqrt {e \csc (c+d x)}}+\frac {2 \sin ^2(c+d x)}{5 a d e^3 \sqrt {e \csc (c+d x)}}-\frac {4 \operatorname {EllipticF}\left (\frac {1}{2} \left (c+d x-\frac {\pi }{2}\right ),2\right )}{21 a d e^3 \sqrt {\sin (c+d x)} \sqrt {e \csc (c+d x)}} \]
[In]
[Out]
Rule 30
Rule 2644
Rule 2648
Rule 2649
Rule 2720
Rule 2918
Rule 3957
Rule 3963
Rubi steps \begin{align*} \text {integral}& = \frac {\int \frac {\sin ^{\frac {7}{2}}(c+d x)}{a+a \sec (c+d x)} \, dx}{e^3 \sqrt {e \csc (c+d x)} \sqrt {\sin (c+d x)}} \\ & = -\frac {\int \frac {\cos (c+d x) \sin ^{\frac {7}{2}}(c+d x)}{-a-a \cos (c+d x)} \, dx}{e^3 \sqrt {e \csc (c+d x)} \sqrt {\sin (c+d x)}} \\ & = \frac {\int \cos (c+d x) \sin ^{\frac {3}{2}}(c+d x) \, dx}{a e^3 \sqrt {e \csc (c+d x)} \sqrt {\sin (c+d x)}}-\frac {\int \cos ^2(c+d x) \sin ^{\frac {3}{2}}(c+d x) \, dx}{a e^3 \sqrt {e \csc (c+d x)} \sqrt {\sin (c+d x)}} \\ & = \frac {2 \cos ^3(c+d x)}{7 a d e^3 \sqrt {e \csc (c+d x)}}-\frac {\int \frac {\cos ^2(c+d x)}{\sqrt {\sin (c+d x)}} \, dx}{7 a e^3 \sqrt {e \csc (c+d x)} \sqrt {\sin (c+d x)}}+\frac {\text {Subst}\left (\int x^{3/2} \, dx,x,\sin (c+d x)\right )}{a d e^3 \sqrt {e \csc (c+d x)} \sqrt {\sin (c+d x)}} \\ & = -\frac {2 \cos (c+d x)}{21 a d e^3 \sqrt {e \csc (c+d x)}}+\frac {2 \cos ^3(c+d x)}{7 a d e^3 \sqrt {e \csc (c+d x)}}+\frac {2 \sin ^2(c+d x)}{5 a d e^3 \sqrt {e \csc (c+d x)}}-\frac {2 \int \frac {1}{\sqrt {\sin (c+d x)}} \, dx}{21 a e^3 \sqrt {e \csc (c+d x)} \sqrt {\sin (c+d x)}} \\ & = -\frac {2 \cos (c+d x)}{21 a d e^3 \sqrt {e \csc (c+d x)}}+\frac {2 \cos ^3(c+d x)}{7 a d e^3 \sqrt {e \csc (c+d x)}}-\frac {4 \operatorname {EllipticF}\left (\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right ),2\right )}{21 a d e^3 \sqrt {e \csc (c+d x)} \sqrt {\sin (c+d x)}}+\frac {2 \sin ^2(c+d x)}{5 a d e^3 \sqrt {e \csc (c+d x)}} \\ \end{align*}
Time = 1.49 (sec) , antiderivative size = 91, normalized size of antiderivative = 0.61 \[ \int \frac {1}{(e \csc (c+d x))^{7/2} (a+a \sec (c+d x))} \, dx=\frac {\sqrt {e \csc (c+d x)} \left (80 \operatorname {EllipticF}\left (\frac {1}{4} (-2 c+\pi -2 d x),2\right ) \sqrt {\sin (c+d x)}+126 \sin (c+d x)+10 \sin (2 (c+d x))-42 \sin (3 (c+d x))+15 \sin (4 (c+d x))\right )}{420 a d e^4} \]
[In]
[Out]
Result contains complex when optimal does not.
Time = 10.01 (sec) , antiderivative size = 316, normalized size of antiderivative = 2.12
method | result | size |
default | \(\frac {\sqrt {2}\, \left (-10 i \sqrt {-i \left (i+\cot \left (d x +c \right )-\csc \left (d x +c \right )\right )}\, \sqrt {-i \left (\cot \left (d x +c \right )-\csc \left (d x +c \right )\right )}\, \operatorname {EllipticF}\left (\sqrt {i \left (-i+\cot \left (d x +c \right )-\csc \left (d x +c \right )\right )}, \frac {\sqrt {2}}{2}\right ) \sqrt {i \left (-i+\cot \left (d x +c \right )-\csc \left (d x +c \right )\right )}\, \cos \left (d x +c \right )+15 \sqrt {2}\, \cos \left (d x +c \right )^{3} \sin \left (d x +c \right )-10 i \sqrt {-i \left (i+\cot \left (d x +c \right )-\csc \left (d x +c \right )\right )}\, \sqrt {-i \left (\cot \left (d x +c \right )-\csc \left (d x +c \right )\right )}\, \operatorname {EllipticF}\left (\sqrt {i \left (-i+\cot \left (d x +c \right )-\csc \left (d x +c \right )\right )}, \frac {\sqrt {2}}{2}\right ) \sqrt {i \left (-i+\cot \left (d x +c \right )-\csc \left (d x +c \right )\right )}-21 \cos \left (d x +c \right )^{2} \sqrt {2}\, \sin \left (d x +c \right )-5 \cos \left (d x +c \right ) \sin \left (d x +c \right ) \sqrt {2}+21 \sqrt {2}\, \sin \left (d x +c \right )\right ) \sin \left (d x +c \right )^{3}}{105 a d \,e^{3} \sqrt {e \csc \left (d x +c \right )}\, \left (\cos \left (d x +c \right )-1\right )^{2} \left (\cos \left (d x +c \right )+1\right )^{2}}\) | \(316\) |
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.11 (sec) , antiderivative size = 111, normalized size of antiderivative = 0.74 \[ \int \frac {1}{(e \csc (c+d x))^{7/2} (a+a \sec (c+d x))} \, dx=\frac {2 \, {\left ({\left (15 \, \cos \left (d x + c\right )^{3} - 21 \, \cos \left (d x + c\right )^{2} - 5 \, \cos \left (d x + c\right ) + 21\right )} \sqrt {\frac {e}{\sin \left (d x + c\right )}} \sin \left (d x + c\right ) + 5 i \, \sqrt {2 i \, e} {\rm weierstrassPInverse}\left (4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right ) - 5 i \, \sqrt {-2 i \, e} {\rm weierstrassPInverse}\left (4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right )\right )}}{105 \, a d e^{4}} \]
[In]
[Out]
Timed out. \[ \int \frac {1}{(e \csc (c+d x))^{7/2} (a+a \sec (c+d x))} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \frac {1}{(e \csc (c+d x))^{7/2} (a+a \sec (c+d x))} \, dx=\int { \frac {1}{\left (e \csc \left (d x + c\right )\right )^{\frac {7}{2}} {\left (a \sec \left (d x + c\right ) + a\right )}} \,d x } \]
[In]
[Out]
\[ \int \frac {1}{(e \csc (c+d x))^{7/2} (a+a \sec (c+d x))} \, dx=\int { \frac {1}{\left (e \csc \left (d x + c\right )\right )^{\frac {7}{2}} {\left (a \sec \left (d x + c\right ) + a\right )}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {1}{(e \csc (c+d x))^{7/2} (a+a \sec (c+d x))} \, dx=\int \frac {\cos \left (c+d\,x\right )}{a\,{\left (\frac {e}{\sin \left (c+d\,x\right )}\right )}^{7/2}\,\left (\cos \left (c+d\,x\right )+1\right )} \,d x \]
[In]
[Out]